package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.AssignNumberBegin;
import com.ruoyi.system.mapper.AssignNumberBeginMapper;
import com.ruoyi.system.service.IAssignNumberBeginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AssignNumberBeginServiceImpl implements IAssignNumberBeginService {
    @Autowired
    private AssignNumberBeginMapper assignNumberBeginMapper;

    @Override
    public Integer getGlobalNumberBegin() {
        AssignNumberBegin config = assignNumberBeginMapper.selectOne();
        return config != null && config.getNumberBegin() != null ? config.getNumberBegin() : 60;
    }
} 